<template>
  <div>
    <GameItem v-for="item in arr" :key="item.id" :item-data="item"></GameItem>
  </div>
</template>

<script>
import GameItem from "@/components/GameItem.vue";
import { doGet } from "@/api";
export default {
  name: "GameComp",
  components: { GameItem },
  data: function () {
    return {
      aaa: [],
    };
  },
  created() {
    doGet("game").then((res) => {
      this.aaa = res;
    });
  },
};
</script>

<style scoped></style>
